main {
  position: relative;
  justify-content: initial !important;
}

.article {
  width: calc(100% - 200px);
  position: relative;
  transition: all 0.3s;

  .article_title {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--card_bg);
    width: 100%;

    h2 {
      margin: 10px 0;
    }

    //
    p {
      font-size: 14px;
      color: var(--font_1);

      span {
        margin-right: 10px;

        &:last-child {
          margin-right: 0px;
        }
      }

    }

    > div {
      margin: 10px 0;

      i {
        font-size: 14px;
        margin: 5px;
        color: #ff9800;

        &:first-child {
          color: #333333;
        }
      }
    }

  }

  .article_content {
    margin-top: 1px;
    min-height: 200px;
    background-color: var(--card_bg);
    width: 100%;
    box-sizing: border-box;
    color: var(--font_1);
    textarea {
      width: 100%;
      height: 100%;
      resize: none;
      border: none;;

    }
  }

  .comment_submit {
    margin-top: 20px;
    min-height: 200px;
    background-color: var(--card_bg);
    padding: 20px 20px 10px 20px;

    .title {
      margin-bottom: 10px;
      padding-bottom: 10px;
      border-bottom: solid 1px var(--card_bg);
      color: #555555;
      position: relative;

      &::after {
        display: block;
        content: '';
        width: 145px;
        height: 1px;
        background-color: #333333;
        position: absolute;
        bottom: 0;
        left: 0;
      }
    }

    .body {
      position: relative;
      width: calc(100% - 40px);
      padding: 20px;
      height: 200px;
      background-color: var(--card_bg);
      border-radius: 5px;
      box-shadow: inset 2px 2px 6px rgb(0 0 0 / 8%);

      textarea {
        width: 100%;
        height: 100%;
        background-color: var(--bg);
        color: var(--font_1);
        padding: 10px;
        border: none;
        resize: none;

        &:focus {

          outline: none;
        }
      }

      > button {
        width: 100px;
        height: 40px;
        border-radius: 10px;
        background-color: var(--btn);
        color: white;
        border: none;
        cursor: pointer;

        position: absolute;
        bottom: 20px;
        right: 20px;

      }
    }

    .footer {
      margin-top: 10px;
      font-size: 14px;
      color: #555555;

      p > span {
        color: #ff9800;
      }
    }
  }

  .comment_list {
    margin-top: 20px;

    ul {
      list-style: none;
    }
  ;

    > ul {
      > li {
        width: 100%;
        display: flex;
        margin-bottom: 20px;

        > .left {
          width: 70px;

          img {
            width: 50px;
            border-radius: 5px;
            transition: all 0.3s;

            &:hover {
              transform: scale(1.1);
            }
          }
        }

        > .right {
          width: calc(100% - 70px);
          background-color: var(--card_bg);
          border-radius: 5px;
          position: relative;
          box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
          padding: 10px 20px;

          &::after {
            display: block;
            content: '';
            position: absolute;
            left: -20px;
            top: 15px;
            width: 0;
            height: 0;
            border: 1px solid transparent;
            border-left-color: white;

          }

          .comment_content {
            margin: 5px 0;

            img {
              margin-top: 5px;
              height: 120px;
              border-radius: 5px;
              box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
              margin-right: 10px;

            }
          }

          .comment_info {
            display: flex;
            justify-content: space-between;
            font-size: 14px;

            > div > span {
              cursor: pointer;
            }


          }

          .delete {
            color: var(--font_del);
          }

          .sub_comment_list {
            margin-top: 10px;
            display: none;

            > div {
              display: flex;
              margin-bottom: 10px;

              .left {
                width: 60px;

                img {
                  width: 30px;
                  border-radius: 5px;
                  transition: all 0.3s;

                  &:hover {
                    transform: scale(1.1);
                  }
                }
              }

              .right {
                width: calc(100% - 50px);

                .sub_comment_content {
                  margin: 5px 0;
                }

                .sub_comment_info {
                  display: flex;
                  justify-content: space-between;

                  font-size: 14px;
                }
              }
            }

            .sub_comment_textarea {
              position: relative;
              width: 100%;
              margin-bottom: 10px;

              > textarea {
                resize: none;
                width: 100%;
                padding: 10px;
                border: 1px solid var(--card_bg);
                border-radius: 5px;
                background-color: var(--bg);
                color: var(--font_2);
                &:focus {
                  border: none;
                  outline: none;
                }
              }

              > button {
                position: absolute;
                right: 20px;
                bottom: 20px;
                width: 80px;
                height: 30px;
                border-radius: 10px;
                color: white;
                cursor: pointer;
                background-color: var(--btn);
                border: none;
              }
            }
          }
        }
      }
    }

  }

  .article_actions {
    position: fixed;
    bottom: 200px;
    right: 16%;
    z-index: 100;

    .item {
      width: 60px;
      height: 50px;
      border-radius: 50%;
      background-color: var(--card_bg);
      margin-bottom: 20px;
      box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      font-size: 14px;

      i {
        font-size: 23px;
        cursor: pointer;
        color: var(--active);
        transition: all 0.3s;

      }

      i.show {
        color: #ff9800;
      }
    }
  }

}

.slider_bar {
  width: 180px;
  position: absolute;
  right: 20px;
  border-radius: 5px;
  transition: all 0.3s;

  .title {
    padding: 10px;
    background-color: var(--card_bg);
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;

    span {
      margin-right: 10px;
    }
  }

  .body {
    opacity: 0;
    visibility: hidden;
    background-color: var(--card_bg);
    padding: 10px 20px 20px 20px;
    transition: all 0.3s;
    height: 0;

    p {
      width: 100%;
      height: 30px;
      line-height: 30px;
      cursor: pointer;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;

      &:hover {
        background-color: rgba(0, 0, 0, 0.1);
      }
    }

    p.active {
      color: #ff9800;
    }

    p[tagName='H1'] {

    }

    p[tagName='H2'] {
      padding-left: 10px;
    }

    p[tagName='H3'] {
      padding-left: 15px;
    }

    p[tagName='H4'] {
      padding-left: 20px;
    }


  }
}

.slider_bar.show {
  width: 250px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);

  & ~ .article {
    width: calc(100% - 270px);
  }

  .title {
    box-shadow: none;
    border-radius: 5px 5px 0 0;
    border-bottom: 1px solid #f0eeee;
  }

  .body {
    border-radius: 0 0 5px 5px;
    opacity: 1;
    visibility: visible;
    height: 300px;
  }
}

.slider_bar.fixed {
  position: fixed;
  top: 213px;
  right: 20px;
  z-index: 100;
}

pre {
  position: relative;


  .code-copy {
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s;
  }

  &:hover {
    .code-copy {
      opacity: 1;
    }
  }

}


































